package com.china08.yxyapi.entity.mg.user;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * @author Richard.Wang
 *
 */
@Document(collection = "yxy.user.favor")
public class YxyUserFavor extends MongoBaseEntityNoId {

    private static final long serialVersionUID = 5497903316923177539L;

    @Id
    private String id;

    /**
     * 用户id
     */
    @Indexed
    @Field(value = "user_id")
    private String userId;

    /**
     * 用户角色id
     */
    @Field(value = "user_role_id")
    private String userRoleId;

    /**
     * 收藏的资源,查询不要将全部字段查询出来
     */
    @Field(value = "res_id")
    private String resId;

    @Field(value = "res_name")
    private String resName;

    /**
     * 学科
     */
    @Field(value = "subject")
    private String subject;

    /**
     * 学段
     */
    @Field(value = "phase")
    private String phase;

    // 2018年01月16日 增加以下字段, 备授课筛选资源需要使用 begin
    /**
     * 版本
     */
    @Field(value = "version_id")
    private String versionId;

    /**
     * 学期id
     */
    @Field(value = "semester_id")
    private String semesterId;

    /**
     * 挂载的目录节点id
     */
    @Field(value = "book_content_id")
    private String bookContentId;

    /**
     * 00:资源 01：微课
     */
    @Field(value = "res_type")
    private String resType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(String userRoleId) {
        this.userRoleId = userRoleId;
    }

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getPhase() {
        return phase;
    }

    public void setPhase(String phase) {
        this.phase = phase;
    }

    public String getResType() {
        return resType;
    }

    public void setResType(String resType) {
        this.resType = resType;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(String semesterId) {
        this.semesterId = semesterId;
    }

    public String getBookContentId() {
        return bookContentId;
    }

    public void setBookContentId(String bookContentId) {
        this.bookContentId = bookContentId;
    }

}
